package com.cloud.yidiandao.util;

import java.util.Random;

/**
 * @author pudding lin
 * @date 2021/1/7 11:21
 */
public class RandomUtil {
    public static int createRandomIntNum(int len){
        //四位    1000 + (0->8999)
        return (int)(Math.pow(10, len - 1)+new Random().nextInt((int)(Math.pow(10,len)-Math.pow(10,len-1))));
    }
}
